package cc.lzmsh.controller;



import cc.lzmsh.domain.entity.Link;
import cc.lzmsh.domain.result.Result;
import cc.lzmsh.domain.vo.LinkVo;
import cc.lzmsh.service.LinkService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 友链(Link)表控制层
 *
 * @author msh
 * @since 2024-09-15 17:53:12
 */
@RestController
@RequestMapping("/link")
public class LinkController {

    @Resource
    private LinkService linkService;

    @GetMapping("/getAllLink")
    public Result<List<LinkVo>> getAllLink() {
        return linkService.getAllLink();
    }

}

